Skip to content

[pull] main from fern-api:main#760

Merged
pull[bot] merged 2 commits into
code:mainfrom
fern-api:main
May 29, 2026
Merged

[pull] main from fern-api:main#760
pull[bot] merged 2 commits into
code:mainfrom
fern-api:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 29, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

iamnamananand996 and others added 2 commits May 29, 2026 19:41
* feat(cli-v2): add fern docs diff command

* Improve docs diff auth, screenshots, URL

Refactor docs diff command to improve auth, URL normalization and screenshot handling. Replace askToLogin with getToken which supports self-hosted flows via FERN_TOKEN and falls back to context.getTokenOrPrompt. Use URL parsing to normalize preview host and simplify production URL info handling (fall back on invalid URLs). Add runtime response validation for slug API responses. Pass a Logger into captureScreenshot, improve error logging, and adjust screenshot path typing; update side-by-side comparison call. Reorder pngjs/puppeteer deps in package.json and update pnpm lock entries accordingly.

* fix: use request interception instead of setExtraHTTPHeaders to prevent FERN_TOKEN leaking to third-party domains

* fix: guard request interception handler against malformed URLs

* fix: remove --ignore-certificate-errors and add preview URL domain allowlist

---------

Co-authored-by: Naman Anand <info@buildwithfern.com>
@pull pull Bot locked and limited conversation to collaborators May 29, 2026
@pull pull Bot added the ⤵️ pull label May 29, 2026
@pull pull Bot merged commit 19cec1a into code:main May 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant